﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DispatchAssist.Model
{
    public class QueryActLog
    {

        /// <summary>
        /// ActionPerformLog 构造函数
        /// </summary>
        public QueryActLog()
        { }


        /// <summary>
        /// ActionPerformLog OR映射构造函数
        /// </summary>
        public QueryActLog(System.Data.IDataReader dr)
        {
            this.AlertID = (Guid)dr["AlertID"];
            this.AlertAction = Convert.ToInt32(dr["AlertAction"]);
            this.AlertActionName = Convert.ToString(dr["AlertActionName"]);

            this.PerformTime = Convert.ToDateTime(dr["PerformTime"]);
            this.UserID = (Guid)dr["UserID"];
            this.Description = Convert.ToString(dr["Description"]);

            this.UserName = Convert.ToString(dr["UserName"]);
            //this.Password = (byte[])dr["Password"];
            //this.RoleID = (Guid)dr["RoleID"];
            //this.LastModifyTime = Convert.ToDateTime(dr["LastModifyTime"]);
            this.DeleteFlag = Convert.ToBoolean(dr["DeleteFlag"]);
            this.DeleteFlagStr = Convert.ToString(dr["DeleteFlagStr"]);

        }


        /// <summary>
        /// 告警ID
        /// </summary>
        public Guid AlertID { get; set; }

        /// <summary>
        /// 告警操作
        /// </summary>
        public int AlertAction { get; set; }

        /// <summary>
        /// 告警操作内容
        /// </summary>
        public string AlertActionName { get; set; }

        /// <summary>
        /// 操作执行时间
        /// </summary>
        public DateTime PerformTime { get; set; }

        /// <summary>
        /// 操作用户
        /// </summary>
        public Guid UserID { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }


        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 逻辑删除标记
        /// </summary>
        public bool DeleteFlag { get; set; }

        /// <summary>
        /// 状态名
        /// </summary>
        public string DeleteFlagStr { get; set; }

    }
}
